import { defineStore } from 'pinia';

const useHomeStore = defineStore({
  id: 'home',
    state: () => ({
        tabIndex: 0
    }),
  getters: {},
    actions: {
        setTabIndex(index: number) {
            this.tabIndex = index;
        }
    },
    persist: [
        {
            paths: ['tabIndex'],
            storage: sessionStorage
        }
    ]
});

export default useHomeStore;